package org.nightrunner.d3.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import org.nightrunner.d3.service.IGuideInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 访问Filter
 * 
 * @author NightRunner
 * 
 */
@Component(value = "guideInfoFilter")
public class GuideInfoFilter implements Filter {

	@Autowired
	private IGuideInfoService guideInfoService;

	public IGuideInfoService getGuideInfoService() {
		return guideInfoService;
	}

	public void setGuideInfoService(IGuideInfoService guideInfoService) {
		this.guideInfoService = guideInfoService;
	}

	public void destroy() {
	}

	public void doFilter(ServletRequest request, ServletResponse response,
			FilterChain filterChain) throws IOException, ServletException {
		filterChain.doFilter(request, response);
	}

	public void init(FilterConfig arg0) throws ServletException {
	}
}
